package com.ctrip.demo.design.adapter;

/**
 * @author xs.wu
 * @date 2021/5/19
 * 适配器：实现目标接口
 */
public class ThreeElectricAdapter implements ThreeElectricOutlet {

    private TwoElectricOutlet twoElectricOutlet;

    public ThreeElectricAdapter(TwoElectricOutlet twoElectricOutlet) {
        this.twoElectricOutlet = twoElectricOutlet;
    }

    @Override
    public void connectElectricCurrent() {
        twoElectricOutlet.connectElectricCurrent();
    }
}
